package pers.cz.model;

import java.util.Date;

public class RequestRecord extends RequestRecordKey {
    private String url;

    private String request;

    private String type;

    private String method;

    private Date requestDate;

    private String ext1;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getRequest() {
        return request;
    }

    public void setRequest(String request) {
        this.request = request == null ? null : request.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public Date getRequestDate() {
        return requestDate;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public void setRequestDate(Date requestDate) {
        this.requestDate = requestDate == null ? new Date() : requestDate;
    }

    public String getExt1() {
        return ext1;
    }

    public void setExt1(String ext1) {
        this.ext1 = ext1 == null ? null : ext1.trim();
    }
}
